﻿using SqlSugar;
using System.ComponentModel.DataAnnotations.Schema;

namespace XinLife.Model
{
    /// <summary>
    /// 角色表
    /// </summary>
    [Table("tb_role")]
    [SugarTable("tb_role")]
    public class Role : BaseModel
    {
        public Role()
        {
        }
        public Role(string name)
        {
            cId = Guid.NewGuid().ToString();
            cName = name;
            cEnabled = true;
            cCreatedDate = DateTime.Now;
            cUpdatedDate = DateTime.Now;
        }

        /// <summary>
        /// 角色名
        /// </summary>
        public string cName { get; set; }
        /// <summary>
        ///描述
        /// </summary>
        public string cDescription { get; set; }
        /// <summary>
        ///排序
        /// </summary>
        public int cSortCode { get; set; }
        /// <summary>
        /// 是否激活
        /// </summary>
        public bool cEnabled { get; set; }
    }
}
